Introduce G_ENABLE_CONSISTENCY_CHECKS
authorMatthias Clasen <mclasen@redhat.com>
Wed, 9 Sep 2015 01:20:00 +0000 (21:20 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 9 Sep 2015 10:32:46 +0000 (06:32 -0400)
commitf114d9c82405a1a5575e65c0f960b5c2b47b6259
treebd03ac54a7338966ef63cf667def2d7329a4bb24
parentf4b53d4b0c4a79ee8668cfbe2480c0a51c55f53b
Introduce G_ENABLE_CONSISTENCY_CHECKS

Use a separate G_ENABLE_CONSISTENCY_CHECKS define to guard internal
consistency checks that are applied unconditionally if they are enabled,
such as the widget invariants checking. Interactive debug spew that can
be triggered at runtime with the GTK_DEBUG environment variable is still
guarded by the G_ENABLE_DEBUG define.

The mapping from enable-debug levels to defines is as follows:

yes:     G_ENABLE_DEBUG G_ENABLE_CONSISTENCY_CHECKS
minimum: G_ENABLE_DEBUG G_DISABLE_CAST_CHECKS
no:      G_DISABLE_CAST_CHECKS G_DISABLE_ASSERT G_DISABLE_CHECKS
configure.ac